<?php
/**
 * Created by JetBrains PhpStorm.
 * User: artron
 * Date: 13-5-17
 * Time: 下午4:41
 * To change this template use File | Settings | File Templates.
 */
include(dirname(__FILE__)."/Smarty-3.1.12/libs/Smarty.class.php");
class CI_Smarty extends Smarty{
    private $Ci = null;
    public function  __construct(){
        parent::__construct();
        $this->template_dir =  SMARTYVIEWPATH; //模板存放目录
        $this->compile_dir = SMARTYCACHEATH; //编译目录
        $this->cache_dir = SYSCACHEPATH;//缓存目录。  
        $this->caching = 0;  
        //$this->cache_lifetime = 120; //缓存更新时间  
        $this->debugging = false;  //是否开启debug
        $this->compile_check = true; //检查当前的模板是否自上次编译后被更改；如果被更改了，它将重新编译该模板。  
        //$this->force_compile = true; //强制重新编译模板  
        //$this->allow_php_templates= true; //开启PHP模板  
        $this->left_delimiter = "{"; //左定界符
        $this->right_delimiter = "}"; //右定界符
    }
    
    public function set_delimiter($left_delimiter='<%' ,$right_delimiter='%>'){
       	$this->left_delimiter = $left_delimiter; //左定界符
        $this->right_delimiter = $right_delimiter; //右定界符
    }

}